package com.ruoyi.cms.navItem.domain;


import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;
import com.ruoyi.common.core.domain.TreeEntity;
import lombok.Data;

@Data
@TableName(value = "t_cms_nav_item")
public class CmsNavItem extends BaseEntity {

    @TableField(exist = false)
    private static final long serialVersionUID = 1L;

    /**
     * 主键
     */
    @TableId(type = IdType.AUTO)
    private Long id;

    /**
     * 项目名称
     */
    @Excel(name = "项目名称")
    private String name;


    /** 父级项目ID */
    @Excel(name = "父级项目ID")
    private Long parentId;


    /** 显示顺序 */
    @Excel(name = "显示顺序")
    private Integer orderNum;

    /**
     * 状态（0正常 1停用）
     */
    @Excel(name = "状态", readConverterExp = "0=正常,1=停用")
    private String status;

    /**
     * 存储图片名称
     */
    @Excel(name = "存储图片名称")
    private String imageObjectName;

    /**
     * 图片存储路径
     */
    @Excel(name = "图片存储路径")
    private String imagePath;

    /**
     * 图片链接
     */
    @Excel(name = "图片链接")
    private String imageUrl;

    /**
     * 跳转链接
     */
    @Excel(name = "跳转链接")
    private String redirectUrl;

    /**
     * 所属分类
     */
    @Excel(name = "所属分类")
    private Long typeId;
}
